<%@ Register TagPrefix="uc1" TagName="HelpCtrl" Src="../Controls/HelpCtrl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../Controls/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="../Controls/Header.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="SR.WebControls" Assembly="SR.WebControls.PageSelect" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CusOrderList.aspx.vb" Inherits="MIMS_WRS.Web.CusOrderList"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Customer Order List</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../Js/common.js"></script>
		<script language="JavaScript" src="../js/function.js" type="text/JavaScript"></script>
	</HEAD>
	<body leftMargin="0" topMargin="0" onload="MM_preloadImages('../images/b_weeklyreporto.gif','../images/b_historyreporto.gif','../images/b_usero.gif')">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<uc1:header id="Header1" runat="server"></uc1:header>
				<!-- Submenu: start -->
				<tr>
					<td>
						<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td class="bgsubmenu" align="center" height="30">
									<table cellSpacing="0" cellPadding="0" width="96%" border="0">
										<tr>
											<td class="txtcolor2">&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td class="bglinetop1" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
							</tr>
							<!-- Submenu: end -->
							<!-- DataTable : start -->
							<tr>
								<td height="350" align="center" valign="top" class="bgwhite">
									<table width="96%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td height="35" align="center">
												<table width="100%" border="0" cellpadding="0" cellspacing="0">
													<tr>
														<td width="56%" height="25" valign="bottom">
															<span class="title"><strong><strong>ORDER LIST</strong></strong></span></td>
														<td width="44%" align="right" valign="bottom"><span class="plink">
																<uc1:HelpCtrl id="HelpCtrl2" runat="server"></uc1:HelpCtrl></span></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td height="5"><img src="../images/1pxl.gif" width="1" height="1"></td>
										</tr>
										<tr>
											<td height="1" class="line"><img src="../images/1pxl.gif" width="1" height="2"></td>
										</tr>
										<tr>
											<td height="25" align="right" class="bgtitle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td>
															<table border="0" cellpadding="2" cellspacing="0" class="txtnormal">
																<tr>
																	<td height="27"><strong>Status:</strong></td>
																	<td><asp:dropdownlist id="ddlStatus" CssClass="txtnormal" Runat="server"></asp:dropdownlist></td>
																	<td width="5" align="right">&nbsp;</td>
																	<td align="right"><strong>Supplier:</strong></td>
																	<td><asp:dropdownlist id="ddlSupplier" Runat="server" CssClass="txtnormal"></asp:dropdownlist></td>
																	<td width="5" align="right">&nbsp;</td>
																	<td align='right'><strong>PO#/BO#</strong></td>
																	<td><asp:textbox id="txtOrderNo" Runat="server" CssClass="txtnormal" Width="80px" MaxLength="10"></asp:textbox></td>
																	<td><asp:button id="btnSearch" Runat="server" CssClass="button" Text="Go" Width="48px"></asp:button></td>
																</tr>
																<tr>
																	<td><strong>
																			<asp:Label id="lblSortRef1" runat="server">Sort Ref. 1</asp:Label>
																			:</strong><strong> </strong>
																	</td>
																	<td><asp:dropdownlist id="ddlSortRef" Runat="server" CssClass="txtnormal"></asp:dropdownlist></td>
																	<td align="right">&nbsp;</td>
																	<td align="right"><strong>
																			<asp:Label id="lblSortRef2" runat="server">Sort Ref. 2</asp:Label>
																			:</strong></td>
																	<td><asp:dropdownlist id="ddlSortRange" Runat="server" CssClass="txtnormal"></asp:dropdownlist></td>
																	<td><SPAN class="txtnormal">
																			<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" CssClass="txthighlight" ControlToValidate="txtOrderNo"
																				Display="Dynamic" ErrorMessage="invalid PO/BO Number" ValidationExpression="\w{0,10}"></asp:RegularExpressionValidator></SPAN></td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td height="1" class="border"><img src="../images/1pxl.gif" width="1" height="1"></td>
													</tr>
													<tr>
														<td height="1" bgcolor="#ffffff" class="txtcolor1s"><img src="../images/1pxl.gif" width="1" height="1"></td>
													</tr>
													<tr>
														<td height="25" class="rowpage"><table width="100%" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td width="44%" height="25">
																		<span class="txtcolor1"></span>
																	</td>
																	<td width="56%" align="right">
																		<table border="0" cellpadding="2" cellspacing="0" class="txtcolor1">
																			<tr>
																				<td align="right" class="txtcolor1s"><cc1:pageselect id="PageSelect1" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
													<tr>
														<td valign="top">
															<asp:datagrid id="dgOrders" runat="server" Width="100%" AutoGenerateColumns="False" BorderColor="#BFD6FB"
																BorderWidth="0px" cellPadding="3" CellSpacing="1" PageSize="20">
																<AlternatingItemStyle BackColor="WhiteSmoke"></AlternatingItemStyle>
																<ItemStyle HorizontalAlign="Center" CssClass="bgrow1" VerticalAlign="Middle"></ItemStyle>
																<HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="txtheader" VerticalAlign="Middle"></HeaderStyle>
																<Columns>
																	<asp:HyperLinkColumn DataNavigateUrlField="ORDER_ID_PK" DataNavigateUrlFormatString="OrderView.aspx?id={0}"
																		DataTextField="ORDER_NUMBER" HeaderText="PO#/BO#">
																		<HeaderStyle Width="33%"></HeaderStyle>
																	</asp:HyperLinkColumn>
																	<asp:TemplateColumn HeaderText="Order Date">
																		<HeaderStyle Width="33%"></HeaderStyle>
																		<ItemTemplate>
																			<asp:Label runat="server" Text='<%# MIMS_WRS.Business.Common.FormatDate(DataBinder.Eval(Container, "DataItem.ORDER_DATE")) %>' ID="Label1">
																			</asp:Label>
																		</ItemTemplate>
																	</asp:TemplateColumn>
																	<asp:TemplateColumn HeaderText="Container">
																		<HeaderStyle Width="33%"></HeaderStyle>
																		<ItemTemplate>
																			<asp:Label runat="server" Text='<%# GetQuantityText(Container) %>' ID="Label2">
																			</asp:Label>
																		</ItemTemplate>
																	</asp:TemplateColumn>
																</Columns>
															</asp:datagrid>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td height="1" bgcolor="#ffffff" class="txtcolor1s"><img src="../images/1pxl.gif" width="1" height="1"></td>
													</tr>
													<tr>
														<td height="25" class="rowpage"><table width="100%" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td width="44%" height="25">
																		<span class="txtcolor1"></span><span class="txtsmall"><strong>TOTAL: </strong></span>
																		<span class="txthighlight"><strong>
																				<asp:label id="lblTotal" Runat="server" CssClass="txthighlight"></asp:label>&nbsp;</strong></span><span class="txtsmall"><strong><asp:label id="lblTotalText" Runat="server" CssClass="txtsmall"></asp:label>
																			</strong></span><span class="txtcolor1"></span>
																	</td>
																	<td width="56%" align="right">
																		<table border="0" cellpadding="2" cellspacing="0" class="txtcolor1">
																			<tr>
																				<td align="right" class="txtcolor1s"><cc1:pageselect id="Pageselect2" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td height="1" class="border"><img src="../images/1pxl.gif" width="1" height="1"></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td align="right">&nbsp;</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="right">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<uc1:footer id="Footer1" runat="server"></uc1:footer>
			</table>
		</form>
	</body>
</HTML>
